const resolve = require('rollup-plugin-node-resolve')
const commonjs = require('rollup-plugin-commonjs')
// const { terser } = require('rollup-plugin-terser')
const pkg = require('./package.json')

module.exports = {
  input: 'src/index.js',
  output: [
    {
      name: 'Func',
      file: 'dest/index.umd.js',
      format: 'umd'
    },
    {
      file: pkg.module,
      format: 'es'
    },
    {
      file: pkg.main,
      format: 'cjs'
    }
  ],
  plugins: [
    resolve(),
    commonjs()
    // terser()
  ]
}
